package com.tledu.carUse.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tledu.common.annotation.Excel;
import com.tledu.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 我的用车对象 car_use
 *
 * @author ruoyi
 * @date 2024-08-30
 */
public class CarUse extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @Excel(name = "编号")
    private Long id;

    /**
     * 车辆id
     */
    @Excel(name = "车辆id")
    private Long carId;

    /**
     * 车辆列表
     */
    // private CarList carList;
    // private String name;
    // private String licence;
    //
    // public String getName() {
    //     return name;
    // }
    //
    // public void setName(String name) {
    //     this.name = name;
    // }
    //
    // public String getLicence() {
    //     return licence;
    // }
    //
    // public void setLicence(String licence) {
    //     this.licence = licence;
    // }

    /**
     * 归还时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "归还时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date returnTime;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 结束时间
     */
    private Date endTime;

    /**
     * 始发地
     */
    private String originPlace;

    /**
     * 目的地
     */
    private String destination;

    /**
     * 车辆状态:0代表未归还,1代表已归还
     */
    @Excel(name = "车辆状态:0代表未归还,1代表已归还")
    private Long useStatus;

    /**
     * 创建者(申请人)
     */
    @Excel(name = "创建者(申请人)")
    private Long createUser;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private Long delFlag;

    public String getRemarkUse() {
        return remarkUse;
    }

    public void setRemarkUse(String remarkUse) {
        this.remarkUse = remarkUse;
    }

    private String remarkUse;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCarId(Long carId) {
        this.carId = carId;
    }

    public Long getCarId() {
        return carId;
    }

    public void setReturnTime(Date returnTime) {
        this.returnTime = returnTime;
    }

    public Date getReturnTime() {
        return returnTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setOriginPlace(String originPlace) {
        this.originPlace = originPlace;
    }

    public String getOriginPlace() {
        return originPlace;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public String getDestination() {
        return destination;
    }

    public void setUseStatus(Long useStatus) {
        this.useStatus = useStatus;
    }

    public Long getUseStatus() {
        return useStatus;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setDelFlag(Long delFlag) {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() {
        return delFlag;
    }

    // public void setCarList(CarList carList) {
    //     this.carList = carList;
    // }
    //
    // public CarList getCarList() {
    //     return carList;
    // }

    @Override
    public String toString() {
        return "CarUse{" +
                "id=" + id +
                ", carId=" + carId +

                ", returnTime=" + returnTime +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", originPlace='" + originPlace + '\'' +
                ", destination='" + destination + '\'' +
                ", useStatus=" + useStatus +
                ", createUser=" + createUser +
                ", delFlag=" + delFlag +
                '}';
    }
}
